/*
 * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd.
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

#ifndef SLE_ADAPTER_H
#define SLE_ADAPTER_H

#include <stdio.h>

#include "sle_hal_errcode.h"
#include "sle_host_hdi.h"
#include "sle_announce_hdi.h"
#include "sle_seek_hdi.h"
#include "sle_connect_hdi.h"
#include "sle_ssap_client_hdi.h"
#include "sle_ssap_server_hdi.h"
#ifdef __cplusplus
extern "C" {
#endif //__cplusplus

typedef struct {
    SleHostHdiOpts *hostOpts;
    SleAnnounceHdiOpts *announceOpts;
    SleSeekHdiOpts *seekOpts;
    SleConnectHdiOpts *connectOpts;
    SleSsapcHdiOpts *ssapcOpts;
    SleSsapsHdiOpts *ssapsOpts;
} SleHdiOpts;

/**
 * @brief  从sdk中获取hdi总接口函数集。
 * 
 * @par    从sdk中获取hdi总接口函数集。
 * @param  [out] ops    sle总接口函数集。
 * 
 * @note   ops should not be NULL,and should be freed by user when not used anymore 
 * @return SleHdiErrorCode
**/
SleHdiErrorCode SleHdiInitOpts(SleHdiOpts* ops);
#ifdef __cplusplus
}
#endif //__cplusplus
#endif //KHOS_SLE_ADAPTER_H